
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)

project(vlp_reader)

aux_source_directory(src DIR_SRCS)
aux_source_directory(include DIR_SRCS)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${PCL_INCLUDE_DIRS})
include_directories(${PCAP_INCLUDE_DIRS})
include_directories(include)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

find_package(Boost REQUIRED COMPONENTS system thread)
include_directories(${Boost_INCLUDE_DIRS})
include_directories(/opt/ros/noetic/include)
file(GLOB catkin_LIBRARIES "/opt/ros/noetic/lib/lib*.so")
# find_package(PCAP REQUIRED)

add_executable(${PROJECT_NAME} ${DIR_SRCS})
target_link_libraries(${PROJECT_NAME} 
                    ${PCL_LIBRARIES}
                    ${Boost_LIBRARIES}
                    ${catkin_LIBRARIES}
                    /usr/lib/x86_64-linux-gnu/libpcap.so.0.8
                    ${OpenCV_LIBS})
